package com.lord.base.ws.demo;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

public class CXFServer {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();  
        factory.setServiceClass(CXFDemoImpl.class);  
          
        factory.setAddress("http://localhost:9000/ws/HelloWorld");  
        factory.create();  
 
        System.out.println("Server start...");  
        Thread.sleep(60 * 60 * 1000);  
        System.out.println("Server exit...");  
        System.exit(0);  

	}

}
